package com.ksyun.alert.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 告警记录VO类
 * @author Zhang
 * @date 2024-05-05
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
@Builder
public class AlertRecordVO {
    // 将yyyy-MM-dd HH:mm:ss格式的字符串转换为秒级时间戳

    /**
     *  告警id
     */
    private Long id;

    /**
     * 告警名
     */
    private String alertMessage;

    /**
     * 告警规则id
     */
    private Integer ruleId;

    /**
     * 告警级别
     */
    private Integer severity;

    /**
     * 主机名
     */
    private String hostName;

    /**
     * 主机IP
     */
    private String hostIp;

    /**
     * 发生时间
     */
    private String occurrenceTime;
}
